import {lazy} from 'react'
export const routes = [
    {
        path:'/register',
        authCheckType:'unauthed',
        component:lazy(()=>import('./pages/Register')),
    },
    {
        path:'/login',
        authCheckType:'unauthed',
        component:lazy(()=>import('./pages/Login')),
    },
    {
        path:'/',
        authCheckType:'authed',
        component:lazy(()=>import('./pages/Home')),
        routes:[
            {
                path:'/video',
                authCheckType:'authed',
                component:lazy(()=>import('./components/home/Video'))
            },
            {
                path:'/upload',
                authCheckType:'authed',
                component:lazy(()=>import('./components/home/Upload'))
            },
            {
                path:'/',
                authCheckType:'authed',
                component:lazy(()=>import('./components/home/Home'))
            },
        ]
    }
]